import Vue from "vue";
import VueRouter from "vue-router";
import ParseCheckTable from "../views/ParseCheckTable.vue";
import ParseTableData from "../views/ParseTableData.vue";
import AddDatas from "../views/AddDatas.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "home",
    redirect: "/table/check"
  },
  {
    path: "/table/check",
    name: "parse-check",
    component: ParseCheckTable
  },
  {
    path: "/table/parse",
    name: "parse-data",
    component: ParseTableData
  },
  {
    path: "/table/add",
    name: "add-datas",
    component: AddDatas
  }
];

const router = new VueRouter({
  routes
});

export default router;
